import request from '@/utils/request'

// 查询研究机构-教育部统计列表
export function listEducationStat(query) {
  return request({
    url: '/research/educationStat/list',
    method: 'get',
    params: query
  })
}

export function collectEducationStat(query) {
  return request({
    url: '/research/educationStat/collect',
    method: 'get',
    params: query
  })
}

export function isExistStatYear(query) {
  return request({
    url: '/research/educationStat/isExistStatYear',
    method: 'get',
    params: query
  })
}

// 查询研究机构-教育部统计详细
export function getEducationStat(id) {
  return request({
    url: '/research/educationStat/' + id,
    method: 'get'
  })
}

// 新增研究机构-教育部统计
export function addEducationStat(data) {
  return request({
    url: '/research/educationStat',
    method: 'post',
    data: data
  })
}

// 修改研究机构-教育部统计
export function updateEducationStat(data) {
  return request({
    url: '/research/educationStat',
    method: 'put',
    data: data
  })
}

// 删除研究机构-教育部统计
export function delEducationStat(id) {
  return request({
    url: '/research/educationStat/' + id,
    method: 'delete'
  })
}
